package com.beiding.sqlbuilder.impl;

import com.beiding.sqlbuilder.BuilderContext;
import com.beiding.sqlbuilder.SqlBuilder;
import com.beiding.sqlbuilder.TableField;

public class SimpleSqlBuilder implements SqlBuilder {

    private BuilderContext context;

    @Override
    public void setContext(BuilderContext context) {
        this.context = context;
    }

    @Override
    public BuilderContext getContext() {
        return context;
    }

    public SimpleSelectBuilder select(TableField... tableFields) {
        SimpleSelectBuilder simpleSelectBuilder = Select.get(tableFields);
        simpleSelectBuilder.setContext(context);
        return simpleSelectBuilder;
    }

}
